const express = require('express');
const router = express.Router();
let count = 1;

router.get('/manucturer/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            brands: [{
                id: '1',
                code: 'code1',
                name: '品牌1'
            }, {
                id: '2',
                code: 'code2',
                name: '品牌2'
            }],
        }
    });
});

router.get('/carrier/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            brands: [
                {
                    id: '1',
                    code: 'code1',
                    name: '品牌1',
 
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '品牌2',
 
                },
                {
                    id: '3',
                    code: 'code3',
                    name: '品牌3',
                },
            ]
        }
    });
});

router.get('/dealerSaleInformation/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: false,
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ],
            tradeMethods: [
                {
                    id: '26e30b7b',
                    code: '1000',
                    name: '奇瑞股份',
                },
                {
                    id: '52a1ad34',
                    code: '2020',
                    name: '海外实业',
                },
            ],
            carriers: [
                {
                    id: '1',
                    code: '1000',
                    name: '货代001',
                },
                {
                    id: '2',
                    code: '2020',
                    name: '货代002',
                },
            ],
            shippingPorts: [
                {
                    id: '1',
                    code: '1000',
                    name: '发货港口001',
                },
                {
                    id: '2',
                    code: '2020',
                    name: '发货港口002',
                },
            ],
        }
    });
});
router.get('/marketDepartment/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isBrandUser: true,
            enterprise: {
                id: '1111',
                code: '10145',
                name: '品牌名称'
            },
            brands: [
                {
                    id: '1',
                    code: 'code1',
                    name: '品牌1',
 
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '品牌2',
 
                },
                {
                    id: '3',
                    code: 'code3',
                    name: '品牌3',
                },
            ],
            areas: [
                {
                    id: '1',
                    areaName: '亚太',
 
                },
                {
                    id: '2',
                    areaName: '东南亚',
 
                },
                {
                    id: '3',
                    areaName: '欧洲',
                },
            ]
        }
    });
});
router.get('/annualSalesTarget/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            brands: [
                {
                    id: '1',
                    code: 'code1',
                    name: '品牌1',
 
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '品牌2',
 
                },
                {
                    id: '3',
                    code: 'code3',
                    name: '品牌3',
                },
            ],
            manufacturers: [
                {
                    manufacturerId: '001',
                    manufacturerCode: 'code001',
                    manufacturerName: '上海',
 
                },
                {
                    manufacturerId: '002',
                    manufacturerCode: 'code002',
                    manufacturerName: '鄂尔多斯',
                },
            ]
        }
    });
});
router.get('/documentSubmitRule/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            brands: [
                {
                    id: '1',
                    code: 'code1',
                    name: '品牌1',
 
                }
            ],
        }
    });
});
router.get('/dealerPersonnel/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: false,
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});
router.get('/dealerResourceList/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: false,
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});
router.get('/saleProformaInvoice/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                }
            ],
            tradeMethods: [
                {
                    id: '1',
                    code: 'code1',
                    name: '贸易方式1',
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '贸易方式2',
                },
                
            ],
            shippingPorts: [
                {
                    id: '1',
                    code: 'code1',
                    name: '发货港口1'
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '发货港口2'
                },
            ],
            carriers: [
                {
                    id: '1',
                    code: 'code1',
                    name: '货代信息1'
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '货代信息2'
                }
            ],
            currentCompany: {
                id: '1111',
                code: '10145',
                name: '品牌名称'
            }
        }
    });
});
router.get('/bank/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: false,
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});
router.get('/letterOfCredit/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});
router.get('/CBUSaleOrder/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            brands: [
                {
                    id: '1',
                    code: 'code1',
                    name: '品牌1',
 
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '品牌2',
 
                },
                {
                    id: '3',
                    code: 'code3',
                    name: '品牌3',
                },
            ],
        }
    });
});
router.get('/KDSaleOrder/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            brands: [
                {
                    id: '1',
                    code: 'code1',
                    name: '品牌1',
 
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '品牌2',
 
                },
                {
                    id: '3',
                    code: 'code3',
                    name: '品牌3',
                },
            ],
        }
    });
});
router.get('/customsClearance/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});
router.get('/CBUSaleOrder/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});
router.get('/vehicleInformation/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
        }
    });
});
router.get('/salePackingList/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            brands: [{
                id: '1',
                code: 'code1',
                name: '品牌1'
            }, {
                id: '2',
                code: 'code2',
                name: '品牌2'
            }],
        }
    });
});

router.get('/commerceInvoice/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});
router.get('/SaleOrderForecastOrder/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});

router.get('/vehicleArchives/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: false,
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});

router.get('/saleConfirmationKd/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            brands: [
                {
                    id: '1',
                    code: 'code1',
                    name: '品牌1',
 
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '品牌2',
 
                },
                {
                    id: '3',
                    code: 'code3',
                    name: '品牌3',
                },
            ],
            tradeMethods: [
                {
                    id: '1',
                    code: 'code1',
                    name: '贸易1',
 
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '贸易2',
 
                },
                {
                    id: '3',
                    code: 'code3',
                    name: '贸易3',
                },
            ],
        }
    });
});

router.get('/KDSaleShipment/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: false,
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});

router.get('/CBUSaleTransport/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: false,
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});
router.get('/KDSaleTransport/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: false,
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});
router.get('/saleDeliveryOrder/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});

router.get('/CBUSaleShipment/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: false,
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});
router.get('/PdiOrder/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: false,
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ],
        }
    });
});
router.get('/saleConfirmationCbu/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            brands: [
                {
                    id: '1',
                    code: 'code1',
                    name: '品牌1',
 
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '品牌2',
 
                },
                {
                    id: '3',
                    code: 'code3',
                    name: '品牌3',
                },
            ],
            tradeMethods: [
                {
                    id: '1',
                    code: 'code1',
                    name: '贸易1',
 
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '贸易2',
 
                },
                {
                    id: '3',
                    code: 'code3',
                    name: '贸易3',
                },
            ],
        }
    });
});
router.get('/potentialCustomer/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ]
        }
    });
});
router.get('/salesLead/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: false,
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ],
        }
    });
});
router.get('/kdClaim/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: false,
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                },
                {
                    id: '392e69de',
                    code: 'code2',
                    name: '品牌2',
                },
            ],
            enterprise: {
                dealerId: 'ff10da96-43df-4be4-8433-08d78feea44e',
                dealerName: 'MACARTHY LIMITED',
                dealerCode: '12641',
                country: 'South Africa'
            }
        }
    });
});
router.get('/testDrive/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            brands: [
                {
                    id: '1',
                    code: 'code1',
                    name: '品牌1',
 
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '品牌2',
 
                },
                {
                    id: '3',
                    code: 'code3',
                    name: '品牌3',
                },
            ],
        }
    });
});
router.get('/salesInformation/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            isSubDealerUser: !(count % 2),
            brands: [{
                id: '1',
                code: 'code1',
                name: '品牌1'
            }, {
                id: '2',
                code: 'code2',
                name: '品牌2'
            }],
        }
    });
});
router.get('/salePlanOrder/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            isSubDealerUser: !(count % 2),
            brands: [{
                id: '1',
                code: 'code1',
                name: '品牌1'
            }, {
                id: '2',
                code: 'code2',
                name: '品牌2'
            }],
        }
    });
});

router.get('/vehicleFollowList/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            brands: [{
                id: '1',
                code: 'code1',
                name: '品牌1'
            }, {
                id: '2',
                code: 'code2',
                name: '品牌2'
            }],
            tradeMethods: [
                {
                    id: '1',
                    code: 'code1',
                    name: '贸易方式1',
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '贸易方式2',
                },
                
            ],
        }
    });
});
router.get('/marketingActivity/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            brands: [{
                id: '1',
                code: 'code1',
                name: '品牌1'
            }],
        }
    });
});
router.get('/purchaseSaleInventories/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            brands: [{
                id: '1',
                code: 'code1',
                name: '品牌1'
            }, {
                id: '2',
                code: 'code2',
                name: '品牌2'
            }],
        }
    });
});
router.get('/purchaseSaleInventoryOrders/init', (req, res) => {
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            brands: [{
                id: '1',
                code: 'code1',
                name: '品牌1'
            }, {
                id: '2',
                code: 'code2',
                name: '品牌2'
            }],
            marketDepartments: {
                id: '20190',
                code: '20190',
                name: '大区0',
            }
        }
    });
});
router.get('/subPiKd/init', (req, res) => {
    count += 1;
    res.json({
        message: '查询成功',
        payload: {
            isDealerUser: !(count % 2),
            brands: [
                {
                    id: 'de872f12',
                    code: 'code1',
                    name: '品牌1',
                }
            ],
            tradeMethods: [
                {
                    id: '1',
                    code: 'code1',
                    name: '贸易方式1',
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '贸易方式2',
                },
                
            ],
            shippingPorts: [
                {
                    id: '1',
                    code: 'code1',
                    name: '发货港口1'
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '发货港口2'
                },
            ],
            suppliers: [
                {
                    id: '1',
                    code: 'code1',
                    name: '供应商1'
                },
                {
                    id: '2',
                    code: 'code2',
                    name: '供应商2'
                }
            ],
        }
    });
});
module.exports = router;
